<?php if (!defined('HAS_POWER')) exit('无权访问!');
class %TableModel extends Model
{
    public function select%Table()
    {
        return $this->select();
    }

    public function find%Table($id)
    {
        return $this->where('id=' . $id)->find();
    }

    public function insert%Table($data)
    {
        return $this->insert($data);
    }

    public function update%Table($data)
    {
        return $this->update($data);
    }

    public function delete%Table($id)
    {
        return $this->where('id=' . $id)->delete();
    }

    public function before()
    {
        return $_POST;
    }

    /** 返回当前模型的表名
     * @return mixed
     */
    public function table()
    {
        return '%table';
    }
}